package com.wms.common;

public class BusinessException extends RuntimeException{
    private static final long serialVersionUID = -788314347541917090L;

    private Integer code;

    private String message;

    public BusinessException(Integer code) {
        super();
        this.code = code;
    }

    public BusinessException(Integer code, String message) {
        super();
        this.code = code;
        this.message = message;
    }

    public BusinessException(Integer code, String message , Throwable cause) {
        super(cause);
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
